/**
 * @author: Niimp
 * @date: 2023/5/5 14:10
 * @statement:
 */
package com.dmgis.hndz;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
        (exclude = {
                MongoAutoConfiguration.class,
                MongoDataAutoConfiguration.class})
//        (excludeName = "org.springframework.boot.autoconfigure.mongo",
//                exclude = {MongoAutoConfiguration.class,
//                MongoDataAutoConfiguration.class})
@Slf4j
public class BusinessApp8002 implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
        registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
    }
    public static void main(String[] args) {
        SpringApplication.run(BusinessApp8002.class,args);
    }
}